package behavior.Command;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by LYJ on 2016/10/20.
 */
public class MacroAudioCommand implements MacroCommand {
    private List<Command> commandList=new ArrayList<>();

    public void execute(){
        for (Command cmd:commandList)
            cmd.excute();
    }

    @Override
    public void addCommand(Command cmd) {
        commandList.add(cmd);
    }

    @Override
    public void removeCommand(Command cmd) {
        commandList.remove(cmd);
    }
}
